<?php
$article_side=$this->config->item('article');
?>
<div class="left-side sticky-left-side">
    <!--logo and iconic logo start-->
    <div class="logo"><a href="<?=base_url();?>"><img src="images/logo.png" alt=""></a></div>
    <div class="logo-icon text-center"><a href="<?=base_url();?>"><img src="images/logo_icon.png" alt=""></a></div>
    <!--logo and iconic logo end-->
    <div class="left-side-inner">
        <!-- visible to small devices only -->
        <div class="visible-xs hidden-sm hidden-md hidden-lg">
            <div class="media logged-user">
                <!--<img alt="" src="images/photos/user-avatar.png" class="media-object">-->
                <div class="media-body">
                    <h4><a href="#">John Doe</a></h4>
                    <span>"Hello There..."</span>
                </div>
            </div>
            <h5 class="left-nav-title">Account Information</h5>
            <ul class="nav nav-pills nav-stacked custom-nav">
                <li><a href="#"><i class="fa fa-user"></i> <span>Profile</span></a></li>
                <li><a href="#"><i class="fa fa-cog"></i> <span>Settings</span></a></li>
                <li><a href="#"><i class="fa fa-sign-out"></i> <span>Sign Out</span></a></li>
            </ul>
        </div>
        <!--sidebar nav start-->
        <ul class="nav nav-pills nav-stacked custom-nav">
            <li class="<?=$segment_1=='main'?'active':''?>"><a href="<?=base_url();?>"><i class="fa fa-home"></i> <span>后台首页</span></a></li>
            <li class="menu-list <?=$segment_1=='article'?'active':''?>"><a href=""><i class="fa fa-book"></i> <span>信息管理系统</span></a>
                <ul class="sub-menu-list">
                    <?php foreach((array)$article_side['side'] as $k=>$v){?>
                    <li class="<?=($segment_1=='article' && $page_name==$v['group_id'])?'active':''?>"><a href="<?=base_url('/article/info_list/?group_id='.$v['group_id']);?>"> <?=$v['title']?></a></li>
                    <?php }?>
                </ul>
            </li>
            <li class="menu-list <?=$segment_1=='news'?'active':''?>"><a href="#"><i class="fa fa-laptop"></i> <span>新闻管理系统</span></a>
                <ul class="sub-menu-list">
                    <?php ?>
                    <li class="<?=($segment_1=='news' && $page_name=='category')?'active':''?>"><a href="<?=base_url('/news/category_list/');?>"> 新闻分类管理</a></li>
                    <li class="<?=($segment_1=='news' && $page_name=='info')?'active':''?>"><a href="<?=base_url('/news/info_list/');?>"> 新闻编辑管理</a></li>
                </ul>
            </li>
            <li class="menu-list <?=$segment_1=='example'?'active':''?>"><a href="#"><i class="fa fa-bars"></i> <span>案例管理系统</span></a>
                <ul class="sub-menu-list">
                    <li class="<?=($segment_1=='example' && $page_name=='category')?'active':''?>"><a href="<?=base_url('/example/category_list/');?>"> 案例分类管理</a></li>
                    <li class="<?=($segment_1=='example' && $page_name=='info')?'active':''?>"><a href="<?=base_url('/example/info_list/');?>"> 案例编辑管理</a></li>
                </ul>
            </li>
            <li class="menu-list <?=$segment_1=='product'?'active':''?>"><a href="#"><i class="fa fa-beer"></i> <span>产品管理系统</span></a>
                <ul class="sub-menu-list">
                    <li class="<?=($segment_1=='product' && $page_name=='category')?'active':''?>"><a href="<?=base_url('/product/category_list/');?>"> 产品分类管理</a></li>
                    <li class="<?=($segment_1=='product' && $page_name=='info')?'active':''?>"><a href="<?=base_url('/product/info_list/');?>"> 产品编辑管理</a></li>
                </ul>
            </li>
            <li class="menu-list <?=$segment_1=='ad'?'active':''?>"><a href="#"><i class="fa fa-bell-o"></i> <span>广告图管理系统</span></a>
                <ul class="sub-menu-list">
                    <li class="<?=($segment_1=='ad' && $page_name=='banner')?'active':''?>"><a href="<?=base_url('/ad/banner_list/');?>">广告图管理</a></li>
                </ul>
            </li>
        </ul>
        <!--sidebar nav end-->
    </div>
</div>